/**
 * Created by leofang on 18-3-16.
 */
import {Pipe, PipeTransform} from "@angular/core";

@Pipe({name: 'executionStatus'})
export class ExecutionStatusPipe implements PipeTransform {
  transform(value: string, args: string[]): any {
    switch (value) {
      case 'created':
        return '排查中';
      case 'correcting':
        return '整改中';
      case 'finished':
        return '完成';
      default:
        return '--';
    }
  }
}
